package org.ziyuandagong.account.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 角色表（t_role），定义系统中的角色信息
 * </p>
 *
 * @author 自愿打工
 * @since 2024-12-06
 */
@TableName("t_role")
@ApiModel(value = "Role对象", description = "角色表（t_role），定义系统中的角色信息")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("角色 ID，主键，采用自增长整数类型")
    @TableId(value = "role_id", type = IdType.AUTO)
    private Integer roleId;

    @ApiModelProperty("角色名称，唯一且不能为空，用于标识角色")
    private String roleName;

    @ApiModelProperty("角色描述，对角色的功能和权限范围进行简要说明")
    private String roleDescription;

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }
    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
    public String getRoleDescription() {
        return roleDescription;
    }

    public void setRoleDescription(String roleDescription) {
        this.roleDescription = roleDescription;
    }

    @Override
    public String toString() {
        return "Role{" +
            "roleId=" + roleId +
            ", roleName=" + roleName +
            ", roleDescription=" + roleDescription +
        "}";
    }
}
